﻿// JScript File

function sureCheck()
{
    strCustomerName=document.getElementById("txtCustomerName");
    if(IsNull(strCustomerName.value))
    {
        //如果客户姓名没有填写，报错误信息
        jAlert("客户名称没有填写!","您出错啦!");
        strCustomerName.focus();
        return false;
    }
    strContacPeople=document.getElementById("txtContactPeople");
    if(IsNull(strContacPeople.value))
    {
        //如果客户姓名没有填写，报错误信息
        jAlert("收货代表人没有填写!","您出错啦!");
        strContacPeople.focus();
        return false;
    }
    
    strCustomerEmail=document.getElementById("txtEmail");
    strCustomerEmailValue=strCustomerEmail.value;
    if(!IsNull(strCustomerEmailValue))
    {
        if(strCustomerEmail.value.indexOf("@")<0)
        {
             jAlert("客户邮件内容必须包括'@'!","您出错啦!");
             strCustomerEmail.focus();
             return false;
        }
    }

}

function Reset()
{
    document.all("form1").reset();
}